package com.px.chapter_Dec_1;

public class Stundent {
    private String name;
    private int age;
    private String inClass;
    private String habbit;
    public Stundent(String name,int age,String inClass,String habbit){
        this.name=name;
        this.age=age;
        this.inClass=inClass;
        this.habbit=habbit;
    }

    public String getHabbit() {
        return habbit;
    }

    public int getAge() {
        return age;
    }

    public String getInClass() {
        return inClass;
    }

    public String getName() {
        return name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void show(){
        System.out.print("年龄："+getAge()+"\n"+"名字："+getName()+"\n"+"兴趣："+getHabbit()+"\n"+"参加课程："+getInClass());
        System.out.println();
    }
}
